<?php



namespace App\Repositories;


class ResponseCode
{


    //状态码

    //基础错误 1xx 用户错误2xx 验证错误3xx 数据错误4xx 外部错误5xx 其他错误6xx


    const SIGN_ERROR = 200101;
    const TOKEN_ERROR = 200102;
    const SMS_ERROR = 200103;
    const MISS_FILE = 200104;
    const DEFECT_SIGN = 200105;
    const DEFECT_TIMESTAMP = 200106;
    const DEFECT_NONCE = 200107;
    const INVALID_SIGN = 200108;
    const INVALID_TIMESTAMP = 200109;
    const INVALID_NONCE = 200110;
    const DEFECT_TOKEN = 200111;
    const INVALID_TOKEN = 200112;
    const TOKEN_FORMAT_ERROR = 200113;
    const SMS_CODE_INVALID = 200114;
    const MISS_PARAM = 200115;
    const REPEAT_OPERATION = 200116;
    const PARAM_ERROR = 200117;


    const USER_NOT_EXIST = 200201;

    const USER_EXIST = 200202;
    const USER_FORBID = 200203;
    const LOGIN_FAIL = 200204;
    const PASSWORD_ERROR = 200205;
    const USER_NO_LOGIN = 200206;
    const USER_NO_VIP = 200207;
    const CLIENT_NOT_EXIST = 200208;
    const INVITE_ERROR = 200209;


    const VERIFY_ERROR = 200301;
    const FILE_EXT_ERR = 200302;
    const STOCK_ERROR = 200303;
    const ORDER_ERROR = 200304;
    const ORDER_PAYED = 200305;
    const ORDER_INTEGRAL_ERROR = 200306;

    const NO_VALID_DATA = 200401;
    const DATA_EXIST = 200402;
    const LIMIT_ERROR = 200403;
    const INTEGRAL_ERROR = 200404;
    const BALANCE_ERROR = 200405;
    const WECHAT_ERROR = 200406;
    const PRODUCT_ERROR = 200407;
    const LOGIN_IDENTITY = 200408;


}
